package com.online_video.service.impl;

import com.online_video.dao.HistoryDao;
import com.online_video.dao.impl.HistoryDaoImpl;
import com.online_video.entity.History;
import com.online_video.service.HistoryService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 黄金星
 * @Date: 2022/03/24/下午8:42
 * @Description:
 */
public class HistoryServiceImpl implements HistoryService {
    HistoryDao historyDao = new HistoryDaoImpl();
    @Override
    public List<History> queryByU_id(Integer u_id) {
        return historyDao.queryByU_id(u_id);
    }

    @Override
    public int deleteAll() {
        return 0;
    }

    @Override
    public int insert(History history) {
        return historyDao.insert(history);
    }
}
